//
//  CALAddNewFoodViewController.h
//  CalCounter
//
//  Created by LamLT on 10/09/2013.
//  Copyright (c) 2013 Le thanh Lam. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CALFood.h"

@protocol CALAddNewFoodViewControllerDelegate <NSObject>
- (void)didAddNewFood:(CALFood *)food;

@end


@interface CALAddNewFoodViewController : UIViewController<UITextFieldDelegate>{
    
    __weak IBOutlet UIScrollView *scrView;
    __weak IBOutlet UITextField *txtFoodName;
    __weak IBOutlet UITextField *txtWeight;
}
@property (nonatomic, weak) id<CALAddNewFoodViewControllerDelegate> delegate;
@property (nonatomic, strong) NSString *_foodName;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil withFoodName:(NSString *)_str;
@end
